export default {
    getTableData:() =>{
        return {
            code: 200,
            data: {
                tableData: [
                    {
                        name:"oppo",
                        todayBuy: 500,
                        monthByt: 3500,
                        totalBuy: 22000,
                    },
                    {
                        name:"vivo",
                        todayBuy: 500,
                        monthByt: 3500,
                        totalBuy: 24000,
                    },
                    {
                        name:"苹果",
                        todayBuy: 500,
                        monthByt: 3500,
                        totalBuy: 22000,
                    },
                    {
                        name:"小米",
                        todayBuy: 500,
                        monthByt: 3500,
                        totalBuy: 22000,
                    },
                    {
                        name:"三星",
                        todayBuy: 500,
                        monthByt: 3500,
                        totalBuy: 22000,
                    },
                    {
                        name:"redmi",
                        todayBuy: 500,
                        monthByt: 3500,
                        totalBuy: 22000,
                    },

                ]
            }
        }
    },
    getCountData:() =>{
        return {
            code: 200,
            data: [
                    {
                        name:"今日支付订单",
                        value: 1234,
                        icon: "SuccessFilled",
                        color: "#2ec7c9",
                    },
                    {
                        name:"今日收藏订单",
                        value: 210,
                        icon: "StarFilled",
                        color: "#ffb980",
                    },
                    {
                        name:"今日未支付订单",
                        value: 1234,
                        icon: "GoodsFilled",
                        color: "#5ab1ef",
                    },
                    {
                        name:"本月支付订单",
                        value: 210,
                        icon: "SuccessFilled",
                        color: "#2ec7c9",
                    },
                    {
                        name:"本月收藏订单",
                        value: 210,
                        icon: "StarFilled",
                        color: "#ffb980",
                    },
                    {
                        name:"本月未支付订单",
                        value: 1234,
                        icon: "GoodsFilled",
                        color: "#5ab1ef",
                    },
                ]
        }
    },
    getChartData: () => {
        return {
          code: 200,
          data: {
            orderData: {
              date: [
                "2019-10-01",
                "2019-10-02",
                "2019-10-03",
                "2019-10-04",
                "2019-10-05",
                "2019-10-06",
                "2019-10-07",
              ],
              data: [
                {
                  苹果: 3839,
                  小米: 1423,
                  华为: 4965,
                  oppo: 3334,
                  vivo: 2820,
                  一加: 4751,
                },
                {
                  苹果: 3560,
                  小米: 2099,
                  华为: 3192,
                  oppo: 4210,
                  vivo: 1283,
                  一加: 1613,
                },
                {
                  苹果: 1864,
                  小米: 4598,
                  华为: 4202,
                  oppo: 4377,
                  vivo: 4123,
                  一加: 4750,
                },
                {
                  苹果: 2634,
                  小米: 1458,
                  华为: 4155,
                  oppo: 2847,
                  vivo: 2551,
                  一加: 1733,
                },
                {
                  苹果: 3622,
                  小米: 3990,
                  华为: 2860,
                  oppo: 3870,
                  vivo: 1852,
                  一加: 1712,
                },
                {
                  苹果: 2004,
                  小米: 1864,
                  华为: 1395,
                  oppo: 1315,
                  vivo: 4051,
                  一加: 2293,
                },
                {
                  苹果: 3797,
                  小米: 3936,
                  华为: 3642,
                  oppo: 4408,
                  vivo: 3374,
                  一加: 3874,
                },
              ],
            },
          },
        };
    },
    getBookData: () => {
      return {
        code: 200,
        data: {
          tableData: [
            {
              bookName: '《三国演义》',
              name: '罗贯中',
              date: '05/01/2016',
              time: '3556',
            },
            {
              bookName: '《红楼梦》',
              name: '曹雪芹',
              date: '05/08/2016',
              time: '3367',
            },
            {
              bookName: '《水浒传》',
              name: '施耐庵',
              date: '26/01/2013',
              time: '3002',
            },
            {
              bookName: '《西游记》',
              name: '吴承恩',
              date: '13/09/2014',
              time: '2578',
            },
            {
              bookName: '《解忧杂货店》',
              name: '东野圭吾',
              date: '09/01/2019',
              time: '1407',
            },
            {
              bookName: '《围城》',
              name: '钱钟书',
              date: '10/01/2017',
              time: '2908',
            },
            {
              bookName: '《活着》',
              name: '余华',
              date: '10/08/2015',
              time: '2346',
            },
            {
              bookName: '《平凡的世界》',
              name: '路遥',
              date: '03/01/2017',
              time: '2368',
            },
            {
              bookName: '《百年孤独》',
              name: '加西亚·马尔克斯',
              date: '06/01/1967',
              time: '4372',
            },
            {
              bookName: '《呐喊》',
              name: '鲁迅',
              date: '08/01/1923',
              time: '1628',
            },
            {
              bookName: '《老人与海》',
              name: '欧内斯特·海明威',
              date: '09/01/1952',
              time: '1279',
            },
            {
              bookName: '《飘》',
              name: '玛格丽特·米切尔',
              date: '06/30/1936',
              time: '1536',
            },
            {
              bookName: '《哈姆雷特》',
              name: '威廉·莎士比亚',
              date: '1603',
              time: '2408',
            },
            {
              bookName: '《简·爱》',
              name: '夏洛蒂·勃朗特',
              date: '1847',
              time: '1920',
            },
            {
              bookName: '《了不起的盖茨比》',
              name: 'F. 斯科特·菲茨杰拉德',
              date: '04/10/1925',
              time: '1808',
            },
            {
              bookName: '《骆驼祥子》',
              name: '老舍',
              date: '01/01/1936',
              time: '1424',
            },
          ].sort((a, b) => b.time - a.time), // 按照 time 字段从高到低排序
        },
      };
    }
    
    

    
  }